#define _CRT_SECURE_NO_WARNINGS 1

#include<stdio.h>

int main() {
    int a, b, c;
    scanf("%d %d %d", &a, &b, &c);
    int result = (a + b + c) / 3;
    printf("%d", result);
    return 0;
}